<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>博物馆电商</title>
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
<%--<link href="assets/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">--%>

<script language="javascript" type="text/javascript" src="assets/js/jquery-1.11.2.min.js"></script>
<script language="javascript" type="text/javascript" src="assets/js/jquery-ui.min.js"></script>
<script language="javascript" type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script language="javascript" type="text/javascript" src="assets/js/bootstrap-datetimepicker.min.js"></script>
<script language="javascript" type="text/javascript" src="assets/js/jquery.validate.min.js"></script>
<script language="javascript" type="text/javascript" src="assets/js/additional-methods.min.js"></script>
<%!
  //注销
  public static final String LOGOUT_URL = "logout.shiro" ;
  //销售管理
  public static final String ORDER_LIST_URL = "pages/front/sale/orderList" ;
  public static final String RETURN_LIST_URL = "pages/front/sale/ReturnList" ;
  public static final String EXPRESS_LIST_URL = "pages/front/sale/expressList" ;
  public static final String CHAT_LIST_URL = "pages/front/sale/chatList" ;
  public static final String FAQ_LIST_URL = "pages/front/sale/faqList" ;
  //用户管理
  public static final String USER_LIST_URL = "pages/front/user/userList" ;
  public static final String COUPON_LIST_URL = "pages/front/user/couponList" ;
  public static final String MS_LIST_URL = "pages/front/user/msList" ;
  //产品管理
  public static final String CLASS_LIST_URL = "pages/front/product/classList" ;
  public static final String PIC_LIST_URL = "pages/front/product/picList" ;
  public static final String GROUP_LIST_URL = "pages/front/product/groupList" ;
  public static final String PRODUCT_LIST_URL = "pages/front/product/productList" ;
  public static final String STOCK_LIST_URL = "pages/front/product/stockList" ;
  //运营管理
  public static final String ARTICLE_LIST_URL = "pages/front/operate/articleList" ;
  public static final String ACTIVITIES_LIST_URL = "pages/front/operate/activitiesList" ;
  public static final String AD_LIST_URL = "pages/front/operate/adList" ;
  public static final String COMMENT_LIST_URL = "pages/front/operate/commentList" ;
  public static final String FREIGHT_LIST_URL = "pages/front/operate/freightList" ;
  public static final String OPERATE_COUPON_LIST_URL = "pages/front/operate/couponList" ;
  public static final String INVITE_LIST_URL = "pages/front/operate/inviteList" ;
  public static final String CLEANSESSION_URL = "pages/front/operate/cleansession" ;
  //渠道管理
  public static final String CHANNEL_LIST_URL = "pages/front/channel/channelList" ;
  //推广管理
  public static final String EXTEND_LIST_URL = "pages/front/ad/extendList" ;
  public static final String AD_CHANNEL_LIST_URL = "pages/front/ad/channelList" ;
  //财务管理
  public static final String PAY_LIST_URL = "pages/front/cash/payList" ;
  public static final String BILL_LIST_URL = "pages/front/cash/billList" ;
  //采购供应商
  public static final String SUPPLIERS_LIST_URL = "pages/front/business/suppliersList" ;
  public static final String SUPPLIERS_PRODUCT_LIST_URL = "pages/front/business/suppliersProductList" ;
  public static final String SUPPLIERS_ORDER_LIST_URL = "pages/front/business/suppliersOrderList" ;
  public static final String SUPPLIERS_QA_LIST_URL = "pages/front/business/suppliersQaList" ;
  //管理员
  public static final String PASSWORD_REVISE_URL = "pages/front/manage/password" ;
  public static final String MANAGE_LIST_URL = "pages/front/manage/manageList" ;

%>
<style type="text/css">
#mainDiv {
	width: 100%;
	margin-top: 15%;
}

@media screen and (min-width: 480px) {
#mainDiv {
	margin-top: 5%;
}
}
td {
	max-width: 300px;
	overflow: hidden;
}
</style></head>

<body role="document">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">文创管理</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      <a class="navbar-brand" href="#">文创管理</a> </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
<shiro:hasAnyRoles name="admin">
        <li id="Marketing" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">销售管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="sale:order">
              <li><a href="<%=ORDER_LIST_URL%>">订单管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="sale:replacement">
              <li><a href="<%=RETURN_LIST_URL%>">退换管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="sale:logistics">
              <li><a href="<%=EXPRESS_LIST_URL%>">物流管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="sale:customer">
              <li><a href="<%=CHAT_LIST_URL%>">客服问题记录</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="sale:faq">
              <li><a href="<%=FAQ_LIST_URL%>">FAQ</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="user">
        <li id="Users" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">用户管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="user:user">
              <li><a href="<%=USER_LIST_URL%>">用户管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="user:card">
              <li><a href="<%=COUPON_LIST_URL%>">卡卷管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="user:news">
              <li><a href="<%=MS_LIST_URL%>">消息管理</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="product">
        <li id="Commodity" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">产品管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="product:class">
              <li><a href="<%=CLASS_LIST_URL%>">分类管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="product:gallery">
              <li><a href="<%=PIC_LIST_URL%>">产品图库管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="product:group">
              <li><a href="<%=GROUP_LIST_URL%>">产品组管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="product:product">
              <li><a href="<%=PRODUCT_LIST_URL%>">产品管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="product:stock">
              <li><a href="<%=STOCK_LIST_URL%>">产品渠道库存管理</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="operate">
        <li id="Contents" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">运营管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="operate:article">
              <li><a href="<%=ARTICLE_LIST_URL%>">文章管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:activity">
              <li><a href="<%=ACTIVITIES_LIST_URL%>">活动管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:advert">
              <li><a href="<%=AD_LIST_URL%>">广告管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:comment">
              <li><a href="<%=COMMENT_LIST_URL%>">评论管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:freight">
              <li><a href="<%=FREIGHT_LIST_URL%>">运费管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:card">
              <li><a href="<%=OPERATE_COUPON_LIST_URL%>">卡卷管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:invite">
              <li><a href="<%=INVITE_LIST_URL%>">邀约管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="operate:cache">
              <li><a href="<%=CLEANSESSION_URL%>">清除缓存</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="channel">
        <li id="Channels" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">渠道管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="channel:stock">
              <li><a href="<%=CHANNEL_LIST_URL%>">渠道动态库存管理</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="extension">
        <li id="Promotion" class="dropdown"><a href="https://manage.spiritlife.cn/manage.jsp?action=main#" class="dropdown-toggle" data-toggle="dropdown">推广管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="extension:extension">
              <li><a href="<%=EXTEND_LIST_URL%>">推广管理</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="extension:channel">
              <li><a href="<%=AD_CHANNEL_LIST_URL%>">渠道管理</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="finance">
        <li id="Finance" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">财务管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="finance:payment">
              <li><a href="<%=PAY_LIST_URL%>">支付信息</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="finance:invoice">
              <li><a href="<%=BILL_LIST_URL%>">发票管理</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="purchase">
        <li id="BuyersSupplier" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">采购供应管理<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <shiro:hasPermission name="purchase:supplier">
              <li><a href="<%=SUPPLIERS_LIST_URL%>">供应商信息</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="purchase:goods">
              <li><a href="<%=SUPPLIERS_PRODUCT_LIST_URL%>">商品信息</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="purchase:purchaseOrder">
              <li><a href="<%=SUPPLIERS_ORDER_LIST_URL%>">采购单</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="purchase:problem">
              <li><a href="<%=SUPPLIERS_QA_LIST_URL%>">问题信息</a></li>
            </shiro:hasPermission>
          </ul>
        </li>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="admin">
        <shiro:hasPermission name="admin:admin">
          <li id="adminuser"><a href="<%=MANAGE_LIST_URL%>">管理员管理</a></li>
        </shiro:hasPermission>
</shiro:hasAnyRoles>
<shiro:hasAnyRoles name="password">
        <shiro:hasPermission name="admin:admin">
          <li id="EditPwd"><a href="<%=PASSWORD_REVISE_URL%>">密码修改</a></li>
        </shiro:hasPermission>
</shiro:hasAnyRoles>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="<%=LOGOUT_URL%>">登出</a></li>
      </ul>
    </div>
  </div>
</nav>


<script>
$(function(){
	$('#').addClass('active');
});
$('#myModal').modal({
	backdrop: "static",
	show: false
})
</script>
</body></html>